﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<z.m.db.Occasion>" %>

<div class="close" onclick="closePopup(this.parentElement);"></div>
<div class="Administer">
	<table data-controller="Messenger" data-id="<%:Model.ID %>">
		<thead>
			<%: Html.Partial("_Row",viewData:new ViewDataDictionary(){{"type","header"}} ) %>
			<%: Html.Action("_Add") %>
		</thead>
		<tbody>
			<%
				foreach (var x in Model.Messengers.OrderByDescending(x => x.ID)) {
					Response.Write(Html.Partial("_Row", x));
				}
			%>
		</tbody>
	</table>
</div>